import request from '@/utils/request'

//查询数据
export function querytable(year, month, line) {
  return request({
    url: '/dashboardChart/querytable',
    method: 'post',
    data: {
      pageNum: 0,
      pageSize: 0,
      year: year,
      month: month,
      line: line
    }
  })
}


//查询数据
export function querytableMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/querytableMonthList',
    method: 'post',
    data: {
      pageNum: 0,
      pageSize: 0,
      year: year,
      month: month,
      line: line
    }
  })
}

//查询Claim投诉件数据
// Claim相关
export function queryClaim(year, month, line) {
  return request({
    url: '/dashboardChart/queryClaim',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryClaimMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryClaimMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// NonConformity相关
export function queryNonConformity(year, month, line) {
  return request({
    url: '/dashboardChart/queryNonConformity',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryNonConformityMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryNonConformityMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// SortingFee相关
export function querySortingFee(year, month, line) {
  return request({
    url: '/dashboardChart/querySortingFee',
    method: 'post',
    data: { year, month, line }
  })
}

export function querySortingFeeMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/querySortingFeeMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// ScrapRatio相关
export function queryScrapRatio(year, month, line) {
  return request({
    url: '/dashboardChart/queryScrapRatio',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryScrapRatioMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryScrapRatioMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// CAPA相关
export function queryCAPA(year, month, line) {
  return request({
    url: '/dashboardChart/queryCAPA',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryCAPAMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryCAPAMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// Compliance相关
export function queryCompliance(year, month, line) {
  return request({
    url: '/dashboardChart/queryCompliance',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryComplianceMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryComplianceMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// FindingsIPQC相关
export function queryFindingsIPQC(year, month, line) {
  return request({
    url: '/dashboardChart/queryFindingsIPQC',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryFindingsIPQCMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryFindingsIPQCMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// PartyFinding3rd相关
export function queryPartyFinding3rd(year, month, line) {
  return request({
    url: '/dashboardChart/queryPartyFinding3rd',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryPartyFinding3rdMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryPartyFinding3rdMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// OQCBatchScan相关
export function queryOQCBatchScan(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCBatchScan',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryOQCBatchScanMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCBatchScanMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// OQCLrr相关
export function queryOQCLrr(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCLrr',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryOQCLrrMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCLrrMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// OQCDppm相关
export function queryOQCDppm(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCDppm',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryOQCDppmMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCDppmMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// OQCOba相关
export function queryOQCOba(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCOba',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryOQCObaMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryOQCObaMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// FoxInsight相关
export function queryFoxInsight(year, month, line) {
  return request({
    url: '/dashboardChart/queryFoxInsight',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryFoxInsightMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryFoxInsightMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// SPIFpy相关
export function querySPIFpy(year, month, line) {
  return request({
    url: '/dashboardChart/querySPIFpy',
    method: 'post',
    data: { year, month, line }
  })
}

export function querySPIFpyMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/querySPIFpyMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// AOIFpy相关
export function queryAOIFpy(year, month, line) {
  return request({
    url: '/dashboardChart/queryAOIFpy',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryAOIFpyMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryAOIFpyMonthList',
    method: 'post',
    data: { year, month, line }
  })
}

// ICTFpy相关
export function queryICTFpy(year, month, line) {
  return request({
    url: '/dashboardChart/queryICTFpy',
    method: 'post',
    data: { year, month, line }
  })
}

export function queryICTFpyMonthList(year, month, line) {
  return request({
    url: '/dashboardChart/queryICTFpyMonthList',
    method: 'post',
    data: { year, month, line }
  })
}